// 公共头部
import myHeader from "/pages/headerfoot/pages/header.vue";
//公共底部
import Tabbar from '/pages/headerfoot/pages/hitgamefooter.vue'
//打帮赛方法
import hitmatchcommon from '@/common/hitmatchcommon.js';
//cache缓存
import Cache from '@/utils/cache.js';


export default {
	components: {myHeader,Tabbar},
	data() {
		return {
			page:1,//页数
			list:[],//列表
		}
	},
	onReachBottom(){
		var that=this;
		that.page=that.page+1;
		that.getUserProjectAchievement();//获取数据
	},
	onLoad(option){
		var that=this;
		that.getUserProjectAchievement();//获取数据
	},
	methods: {
		//获取数据
		getUserProjectAchievement() {
			var that = this;
			var data = {};
			data['make_user_id']=Cache.get('user_id');
			data['page']=that.page;
			hitmatchcommon.getUserProjectAchievementapiLibMethod(data).then(res => {
				if (res) {
					that.list = that.list.concat(res);//赛事参赛列表
				}
			});
		},
	}
}
